package com.digital.welcome.service.impl;

import com.digital.welcome.entity.Permission;
import com.digital.welcome.mapper.PermissionMapper;
import com.digital.welcome.service.PermissionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;


@Service
public class PermissionServiceImpl extends ServiceImpl<PermissionMapper, Permission> implements PermissionService {

    @Autowired
    private  PermissionMapper permissionMapper;

    @Override
    public Set<String> selectAllPermissionCodeByUsername(String username) {
        return permissionMapper.selectAllPermissionCodeByUsername(username);
    }

    @Override
    public List<String> selectAllPermissionNameByUsername(String username) {
        return permissionMapper.selectAllPermissionNameByUsername(username);
    }
}
